#Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



LOCAL_PATH := $(call my-dir)/../../src
include $(CLEAR_VARS)

WN_LIBS ?= ../../

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../ $(LOCAL_PATH)/../../../Dependencies/antlr/
LOCAL_CFLAGS := $(shell $(WN_DEPENDENCY_DIR)llvm/Android/BuildTools/Debug+Asserts/bin/llvm-config --cxxflags) -std=c++11
LOCAL_CPP_EXTENSION := .cpp
LOCAL_MODULE    := WNScripting
LOCAL_STATIC_LIBRARIES := WNLogging
LOCAL_SRC_FILES := ../src/WNArgList.cpp ../src/WNArrayAccessExpression.cpp ../src/WNArrayAllocation.cpp ../src/WNAssignment.cpp ../src/WNBinExpression.cpp\
					../src/WNCodeModule.cpp ../src/WNCondExpression.cpp ../src/WNConstantExpression.cpp ../src/WNDeclaration.cpp ../src/WNDeclList.cpp\
					../src/WNDoInstruction.cpp ../src/WNExpression.cpp ../src/WNForInstruction.cpp ../src/WNFunctionCallExpression.cpp ../src/WNFunction.cpp\
					../src/WNIDExpression.cpp ../src/WNIfInstruction.cpp ../src/WNInstruction.cpp ../src/WNInstructionList.cpp ../src/WNLValue.cpp ../src/WNMemberAccessExpression.cpp\
					../src/WNNullAllocation.cpp ../src/WNPostExpression.cpp ../src/WNPostUNExpression.cpp ../src/WNReturn.cpp ../src/WNScopedVariableListImpl.cpp\
					../src/WNScriptASTLexer.cpp ../src/WNScriptASTParser.cpp ../src/WNScriptCastingInitialization.cpp ../src/WNScriptFile.cpp\
					../src/WNScriptFloatTypeInitialiization.cpp ../src/WNScriptFunctionInitialization.cpp ../src/WNScriptingEngineFactory.cpp ../src/WNScriptingEngineImpl.cpp\
					../src/WNScriptingFactoryInternal.cpp ../src/WNScriptIntTypeInitialization.cpp ../src/WNSSExpression.cpp ../src/WNStringType.cpp ../src/WNStructAllocation.cpp\
					../src/WNStruct.cpp ../src/WNTypeManagerImp.cpp ../src/WNTypeNode.cpp ../src/WNUnExpression.cpp ../src/WNWhileInstruction.cpp 

include $(BUILD_STATIC_LIBRARY)
